package com.yiboshi.rehrs.util;

import com.yiboshi.rehrs.util.js.AesUtils;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.codec.Charsets;
import org.jetbrains.annotations.NotNull;

import java.io.IOException;
import java.net.URLEncoder;
import java.security.MessageDigest;

/**
 * @author jack 2025/3/8
 */
//金蛇
@Slf4j
public class JinsheUtil {
   //public static String rc4KeyNew = "AmgSdyjJVNCX0Cs9p";


    public static final String APP_SAVE_PATH = "/Download/";
    public static final String BASE_URL = "https://211.156.197.65/";
    public static final String BASE_URL_GUIBAN = "https://211.156.195.23/";
    public static final String BASE_URL_GUIJI = "http://211.156.201.20:8012/";
    public static final String BASE_URL_NEW_M = "https://js.taety.cn/";
    public static final String BASE_URL_PL = "https://qi5.mmlwo.cn/get1/api.php";
    public static final String BASE_URL_PLXSD = "https://pl.mmlwo.cn/Api?AppId=10001";
    public static final String BASE_URL_PUFU = "http://tdy.spb.gov.cn/";
    public static final String BASE_URL_RECHARGE = "https://yzf.mmlwo.cn/";
    public static final int MAX_SELECT_PIC_NUM = 6;
    public static final String appKey = "gDc43yC45Ksxf8yr";
    public static final String appKeyNew = "6e53fc0dc562406d238beaef705abfb5";
    public static final String gongYao = "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCZMYXvNpLgq4PX+LlWem7lzScgKGNRVJYGbRVEKO+Kaj5BdUpqucNo5+4rM6uiYimV6XSEV9eH8cHbl2ea4fN7rm/TFa6nSTdVTYDZt0WSxudfQ52QgZvl6cW7EFQCB589y52cFMAaL1wz9aJu3Uqz2+nVk/KZrSof65l6zPq1DwIDAQAB";
    public static final String rc4Key = "0OenR-AFktg-GvWYr-l3XPI-4Jim";
    public static final String rc4KeyNew = "AmgSdyjJVNCX0Cs9p";
    public static final String rsaKeyNew = "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCFkjpooEImg5xPyQcNmKMGWOYpMCipddQMTSOS75tx4XPJ7K+d440QASn9zne0HoRi40yDKhDkolzs/etUkKq+qG6D+NtTJJEOQhWH/WQWkOMvV2PXt/3+TxER0oUfW2lkknwHRyvHXIntk8g+WhvwHtjmq1ts3E+q6cEakhXNMwIDAQAB";


    @NotNull
    public static String buildUA(long currentTimeMillis) {
        StringBuilder sb = new StringBuilder();
        sb.append(currentTimeMillis);
        sb.append('_');
        sb.append((Object) MD5.encode(currentTimeMillis + "_BcyGWm"));
        sb.append(' ');
        sb.append("Dalvik/2.1.0 (Linux; U; Android 10; AQM-AL10 Build/HONORAQM-AL10)");
        return sb.toString();
    }

    static String timeAes = "2025050214011625";
    public String postPiliang(String apiUrl,String path,String n1 ,String timeAes) throws Exception {
       // String path = "/delivery-app/p/delivery/pdataskquery/findpdasignwaybillinfonew.do";
       // String n1 = Qi5uxeel.buildN1();
        //2025050214011625
        String encrypt = AesUtils.encrypt(path,timeAes).replaceAll("\n","");
        encrypt = URLEncoder.encode(encrypt,"utf-8");
        String data = encrypt;

        String encrypt2 = AesUtils.encrypt(n1, timeAes).replaceAll("\n","");
        String sign = URLEncoder.encode(encrypt2,"utf-8");;
        long currentTimeMillis = System.currentTimeMillis() / 1000;
        String ua = buildUA(currentTimeMillis);
        String requestStr = String.format("data=%s&sign=%s", data, sign);
       //requestStr = "data=j65E%2B6i%2BwAdkHLvxnVbDAU5b2KIoITtCaEiGdxVJf1vFildonhs79dcveMFtDbTr&sign=kjrOex4Kl%2BXE01Nh3qifwDFWhtqsrcewGOsAG9gSaxk%3D";
        log.info("requestStr:{}",requestStr);
        String piliang = apiUrl;//"https://qi5.mmlwo.cn/get1/piliang.php";
        String execute = new OkHttpUtil().url(piliang)
                .addHeader("User-Agent", ua)
                .addHeader("Content-Type", "application/x-www-form-urlencoded")
                //.proxySupplier(()-> proxyHelper.one())
                .post(requestStr.getBytes()).execute();
        System.out.println(execute);
        execute = AesUtils.decrypt(execute,"2025050214011625");
        //return execute
        System.out.println(execute);
        return execute;
    }

    public static void main(String[] args) {
        String data = "H7kkJaA0nmzRZHizODSTJlNrT9AJwupND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6NyTkZRc1Gmrsjktd8c7wm_iO-6rvFyVcbNJ45eraVb7TkaA4tVvYhTgjdMklWUAvGfOhibCgOKSqo0WS4whWspw91XRfEwMP9Ecl3RfP1MEcSCT-vg9v8iO4GIjUmNYn35ksMN5_t6qjCCA8VTOfZttIB52s745E0UBra9pAGy8Dq23I6Dua-863a0EHhxdcIJ8gFUGfEFh1__yD7taHePWZ4lbtqsnkLPCE8nlcAcmMxGzRo-aCPNbv9Q2DopS38DL_SZIclStQbG08foROstbSZK4oVW6uruqAm7Ov7Y5oK5nDxznEAjCHUE8Hrnnh9_2F0anofSqWVffEw4bljaqPTyxlas0zk-YomCFt3SO1XjgbajUBd-D2BhlNzQZwgZGFe3KS-kxeH0sh90r8ONw50Rh0v8nPx-au5UAtdGyA7nZoyZnFSym07yDL_356QIopJ6HKXYSuYAklAEuNXCtbOfiff6PNRUvXAgYXG9penkvZOhgXegPcV4O9o_zwnApvvGMEmilL285jZ3JJpGfYwLPMgRjwtHjsSsBQbgQVIu8DPfRJe-g813wXMcTPYyCv5H0cx-hf6s9FoZ8fJZYsk00-cophjmKDqIxizS1n3Wyhb4UADK55-XGXsuV8QeFSm208agczFR_AzZFzPg0jpFr8K_I3Mx7vHh_Ta7VpM6tmRMBrGt6BMNnP7megQFbR6nsStkcxqyRV_94kJGAjedNarxVB4QpfZEN_s7qgah-Dr0V1kTs7Lp_BXDoUKoUKRXu_jw";
        data = JsRSAUtils.publicDecrypt(data);
        System.out.println(data);
    }

    public static void main2(String[] args) throws Exception {
        //post();
        String str = "BYMUKpuUkxFGtqE_3j3qiEBnbj28a6rhzecw0rM7BLFw-7cVKvm_fuaiAEQ0S6q9cKmgn9eqVQo8nHWNUid4aIP5WWx-aNq_aZKKOGsQnFNiHCS2oNTLxXACQDEYZDngpcbYhrIIITBp1LXk6OzFmm14JzoOhHPBtwy1FmZrCmIMvrSl7Mlo5OYYNhAfRJGx-QFruNUFtae1E1YhJPBtoAdmXDat76XOCaI0xxtoPt6icK-EwU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hx06SGMPtK2E7h3FZgEYgeNl1lr0ivj9GfqQkubSAjgF4DvWxefQMmdlRiyzLH1xxxLZB0bJQgasqAF59U68quQkzG1sDAkGU9eJePbV1uTcEJbnaTs-LOaAw7cwT8GPT7p8l6MDsWxGM_Dta0DmsAlW9xpLUnR9MxxjceaMZDtWEKHCa1pNRBQAnLkVmwbcf5ruUhNNyHOtaxEfOR3VAxtAT8DTSGUMO6xPJoCp7RZIY_ho1HUn35nw7Aq9kDFJd6nXMYZzTgGKCTCRAP3piU1KuTuITej6yEbE8lP0TqUXGhfeo62qWZRF41thOyyvX23IiO99IJaUR0kdJHC3qvvyy6f_xaNrKGhfSDr1eAYVYIj8V5y95MAFpKVMfzy2Diz_w";
        //http://192.168.0.103:8283/js/api/user/1000/android/1.01080/zyltgnq1
        String decode = "";
       /* str = "data=MIB-e8gn5YTcVyfmAdWLsaDZkwB2CeH69eZpNw6CDH5AfdTtcGWYvWZ4IZp268xX4RMpgZAf00gF19eIr7egmincAEBbj_zBfbEFDL7HgNrsolXOMsFGcTxsbZbfZ_jQg2uU_a0O8NRCrXOLEGIK58TW-TMTkwYdxeYInM8XFFgq2fwtjPsW0LzZn8Wx5pmyYxNgNQkgVRpKn6J-jR4HMkR3cb8Ra1nYchpzZPp_VFmr_HuxRc3SYVe0PPoJlP3R8Ctq67aD6QxMQka1-CEmRmtHatUKbTuMFAg2lNUENJ426kSzrOr-VBV9Pp1kWKKQhYfjkQL-L5O6GPOi6k-wy0F1-efH3lXLPqI_wDN5bx57pLmRXC3AKzLph84OMxPwtCrT_Zr-2IZobz6q1aoPmOhP2DxqeESWhQiAzJ7RYXClBkrzYVrZgfS-Fw77GW1xAVHA1MzKUGstOlgPxwnBLjvsqOkpQNqg3ebI-15FofcxczWDazplruuxXj0hLyllISeaAEaIDQXchm6DJrFFht2s-ETBtU-Oh5sRCkXO3v3WZV7mmbkFHLC6cZ2gKMdheEHvh1kb9PTf52zLIXFkf_Wb-vXPhkmMyCf9sQnP7rOdIf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KdFHPs6VeD4bQPvErQt8af9D7JWSi7D80Q1Jod41L-K-FwEGR303oAMOHuDx16ynXB25I8aCX1tCaWAJa2j9peQFdQWqBERT3W_bHjw2Yv2phA6hfQgrPx6YEkDNEWyBw20_S6Sd-HFrIOEjpDVm4ovsBhbI49g";
        str = str.replaceAll("data=","");
        decode = JsRSAUtils.publicDecrypt(str);
        System.out.println(decode);*/

      /*  str = "SLHoUVbGbOyr52WoGHZ6ZljVxUp_2BDU31AtoRiLukzGBuHBWg8WPYs3Oh5zDxusxTziJsPBpPpEzig9bV6yTbRSaO_fvXSuzz6WbU3x9knrmv4kOY_ttU26_88-v5MuZ3CoBmVqECTxELV4zUajyDucbaljYkDK2nTpaEet-zkl312ZndKn9CCLUqVlXrslU3st44NR2P5gRQJ2sb2F0FG-UKXVqnHALRG3UAcZnP_pwq3yqGY7kXZAqm40SI-jXrtY0SN4MEYtRCYMXnV5qkcoiB9Z7VDA7MUn_jScb3fItYcyl6nwO3FN7PgvsL3Rh1Np6Uhbz7AHHMr_mHTn5A";
        str = str.replaceAll("data=","");
        decode = JsRSAUtils.publicDecrypt(str);
        System.out.println(decode);*/
        //postPiliang();


        //postPiliang();

        //str = "M0vCntCXeAzhXVQ/wAGA+zQTnRLWVycLaC8VE2y2PZQSPpUiatkLs9lu06rdcK/eacvCH4HlIFCtD6tIqqOx98jg/BXs6+aBtSt8c62Vv5MQsQNR8eI3pJv5LLr8W19BU55fVbeaIN3GUkN4sHUnKC69wUUkycjMuWMXU+sl0wJs1aDfR+TGqH1G8OmTdRHgxCF8wC/7y6A9wkbis9ZQWO57Hv8kYk7ka2utI5YAqp9ULobwH8PTy6Sn2Z6yB5E2azuAss7l2eRrnpQC6Oxd8ltDtTMWY4NSTiip2kjAcr32ziC9ISkTBBiG0oA5lvyXEXBjSdJb7XreoL+UTMGOEmmb/SlyzZgruAOv2fqtIEV9VaElbXcmIGa9z5KapTsJGcaSTLG7g0GP6lj6NoG5+E3r8SNwlhXDJgBXHt9Qq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KDUvLh0OVIRnXlBk7mjOoada2OfJiGijBXodfGYptPVGtQxyP7by9YZAOwFHUqS3cPe5Q2FN5If5fa0+eVPS3gWjkukdERgkb7Kgtvafrabhw/WDicyH9cWTCEoYo1wPLYExExDrAbVC5j28pGPR1ypQ/S9d5N1/DnBuCote0ZZu9eNSdbxjX+1TNdMHVeMY28TM3RVs2JgHdw/wi5iD25DQhTjbeDjcMNP0poGk/WAUSAw==";
        //String s = JsRSAUtils.publicDecrypt(str);
        //System.out.println(s);

        str = "j65E+6i+wAdkHLvxnVbDAU5b2KIoITtCaEiGdxVJf1vFildonhs79dcveMFtDbTr";
        String de = AesUtils.decrypt(str,timeAes);
        System.out.println(de);
        String encrypt = AesUtils.encrypt("/delivery-app/p/delivery/cloudcall/updatephone", timeAes);
        System.out.println(encrypt);

        str = "kjrOex4Kl+XE01Nh3qifwDFWhtqsrcewGOsAG9gSaxk=";
        de = AesUtils.decrypt(str,timeAes);
        System.out.println(de);
    }


}
